package com.hly.musicbackground.model.boots.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hly.musicbackground.domain.FictionChapter;
import com.hly.musicbackground.domain.FictionContent;
import com.hly.musicbackground.model.boots.VO.FictionContentVO;
import org.jsoup.nodes.Document;

import java.util.List;

public interface FictionContentService extends IService<FictionContent> {

    /**
     * 获取章节的内容
     * @param fictionChapter 章节对象
     * @return FictionContentVO 返回内容对象
     * */
    FictionContentVO getFictionContent(FictionChapter fictionChapter);

    /**
     * 将Document对象转成FictionContent实体类
     * @param document 内容的document对象
     * @param id 章节id
     * @return List 返回内容对象
     * */
    FictionContent DocumentToObject(Document document, int id);

}
